#!/bin/bash
# Zaitan Module - aMSN Install
# Zaitan Team <http://code.google.com/p/zaitan/>

RMOD_ENGINE='3.0'
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='IM'
RMOD_NAME='aMSN'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION='0.97rc1'
RMOD_DESCRIPTION='Installs aMSN'
RMOD_UPDATE_URL='http://code.google.com/p/zaitan/'

# install aMSN

echo Running $RMOD_NAME...
#/usr/lib/zaitan/modulo/mod-checkInstall


apt-get update

cd /usr/share/zaitan
wget -c http://download.tuxfamily.org/3v1deb/pool/feisty/3v1n0/tcl8.5_8.5.0.a5-3v1ubuntu0_i386.deb
wget -c http://download.tuxfamily.org/3v1deb/pool/feisty/3v1n0/tk8.5_8.5.0.a5-3v1ubuntu0_i386.deb
wget -c http://packzaitan.googlecode.com/svn/trunk/packages/tcltls_1.5.0.1.deb


dpkg -i --force-all tcl8.5_8.5.0.a5-3v1ubuntu0_i386.deb
dpkg -i --force-all tk8.5_8.5.0.a5-3v1ubuntu0_i386.deb
dpkg -i tcltls_1.5.0.1.deb

cd /usr/lib

ln -sf libtk8.5.so.0 libtk8.5.so
ln -sf libtcl8.5.so.0 libtcl8.5.so

cd /usr/share/zaitan
wget -c http://packzaitan.googlecode.com/svn/trunk/packages/amsn_0.97b-svn.deb
dpkg -i amsn_0.97b-svn.deb
apt-get -f install

dpkg -i --force-all tcl8.5_8.5.0.a5-3v1ubuntu0_i386.deb
dpkg -i --force-all tk8.5_8.5.0.a5-3v1ubuntu0_i386.deb


echo $RMOD_NAME Finibashed...

##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a /usr/share/zaitan/logs
/usr/lib/zaitan/modulo/mod-logs
##

exit 0
